package com.jueban.Dto;

import com.jueban.model.RewardState;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class ApplyRewardQueryDto {

    @NotNull
    private Integer offset; //当前页号

    @NotNull
    private Integer pageSize; //页面条目大小

    private String department; //查询部门

    private String applyName; //通过产权申请名搜索

    private String applicantName; //通过申请人的名字查询

    private RewardState rewardState;

    private String queryType;


    public String getDepartment() {
        if (department == null) return "";
        else return department;
    }

    public String getApplyName() {
        if (applyName == null) return "";
        else return applyName;
    }

    public String getApplicantName() {
        if (applicantName == null) return "";
        else return applicantName;
    }
}
